package com.hospital.hospitaldrugservice.web;


import com.hospital.common.vo.ResultEntity;
import com.hospital.hospitaldrugservice.entity.Drugstatus;
import com.hospital.hospitaldrugservice.entity.Drugtype;
import com.hospital.hospitaldrugservice.service.IDrugstatusService;
import com.hospital.hospitaldrugservice.service.IDrugtypeService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 药类型表 前端控制器
 * </p>
 *
 * @author 王晓康
 * @since 2020-10-20
 */
@RestController
@RequestMapping("/drugtype")
public class DrugtypeController {

    @Autowired
    private IDrugtypeService drugtypeService;

    @RequestMapping("/list")
    public ResultEntity list(){
        List<Drugtype> drugtypeList = drugtypeService.list();
        return ResultEntity.ok(drugtypeList);
    }

}
